// 用户信息接口
export interface UserInfo {
    id?: number
    username: string
    password?: string
    realName: string
    role: string
    phone: string
    email: string
    avatar?: string
    gender?: number
    region?: string[]
    address?: string
    bio?: string
    status?: number
    createTime?: string
    updateTime?: string
  }

  export interface UserQuery {
    pageNum: number
    pageSize: number
    username?: string
    role?: string
  }
  
  export interface UserPageData {
    records: any[]
    total: number
    size: number
    current: number
    orders: any[]
  }
  
  // 分页响应数据
  export interface PageResult<T> {
    records: T[]
    total: number
    size: number
    current: number
    pages: number
    orders: any[]
    optimizeCountSql: boolean
    searchCount: boolean
    countId?: string
    maxLimit?: number
  }
  
  // API响应格式
  export interface UserResponse {
    code: number
    msg: string
    data: PageResult<UserInfo>
  }

  // 注册表单接口
export interface RegisterForm {
    username: string
    password: string
    confirmPassword: string
    realName: string
    phone: string
    email: string
    role: 'student' | 'counselor'
    status?: string
  
    // 咨询师特有字段
    title?: string
    specialty?: string[]
    qualification?: string
    workYears?: number
    introduction?: string
    certificateNo?: string
    certificateUrl?: string
  }
  
// 添加更新个人信息的接口类型
export interface ProfileUpdateData {
    id?: number
    username?: string
    realName?: string
    phone?: string
    email?: string
    avatar?: string
    gender?: number
    region?: string[]
    address?: string
    bio?: string
    password?: string
  }